package com.example.demo.quartz;

import com.example.demo.entity.SysJob;
import com.example.demo.service.ISysJobService;
import com.example.demo.util.SpringUtils;
import org.springframework.stereotype.Component;

/**
 * 定时任务调度测试
 * 
 * @author ruoyi
 */
@Component("quartzTest")
public class DemoTask {

    public void demoNoParams() {
        System.out.println(SpringUtils.getBean(ISysJobService.class).selectJobList(new SysJob()).size());
    }
}
